﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cartoon.Logic
{
    public interface ICartoonService
    {
        /// <summary>
        /// 获取url地址图片,大多数网站的图片都设置的防盗链
        /// 但指定相应的域名仿冒成是当前网站去读取图片数据
        /// 就轻松防盗链的法眼
        /// </summary>
        /// <param name="imgUrl">http图片地址</param>
        /// <param name="domain">referer 域名</param>
        /// <param name="savePath">保存路径</param>
        /// <returns></returns>
        bool SaveImage(string imgUrl, string domain, string savePath);

    }
}
